package com.sumainfor.pc.gmio.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.gmio.service.ComplaintTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/tenant/key/ComplaintTypeContrcoller")
public class ComplaintTypeContrcoller {

    @Autowired
    ComplaintTypeService complaintTypeService;

    /**
     * 查询投诉类型
     * @return
     */
    @ResponseBody
    @RequestMapping("getComplaintType")
    public JsonResult getComplaintType() {
       return  complaintTypeService.getComplaintType();
    }
}
